﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace reverseString
{
    class reverseString
    {
        static void Main(string[] args)
        {

            string s = Console.ReadLine();
            Console.WriteLine(reverseStirng(s));
        }
        static string reverseStirng(string input)
        {
            StringBuilder sb = new StringBuilder();

            for (int i = input.Length -1 ; i >=0; i--)
            {
                sb.Append(input[i]);
            }
            return sb.ToString();
        }
    }
}
